﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PositionDutyBLL : IPositionDutyBLL
    {
        PositionDutyDAL PosDuty = new PositionDutyDAL();

        public PositionDutyInfo GetPositionDutyInfo(Nullable<int> seq)
        {
            return PosDuty.GetPositionDutyInfo(seq);
        }
        public IList<PositionDutyInfo> LoadGridPositionDuties(Nullable<int> EmpTypeSeq)
        {
            return PosDuty.LoadGridPositionDuties(EmpTypeSeq);
        }
        public void Insert(PositionDutyInfo Info)
        {
            try
            {
                PosDuty.Insert(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(PositionDutyInfo Info)
        {
            try
            {
                PosDuty.Update(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(PositionDutyInfo Info)
        {
            try
            {
                PosDuty.Delete(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        
    }
}
